package com.leyou.item.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.leyou.item.entitry.Category;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface CategoryMapper extends BaseMapper<Category> {

    @Select("select * from tb_category_brand tcb where tcb.brand_id=#{id}")
    List<Integer>  findCategoryIdByBrand(Integer id);


}
